home *** CD-ROM | disk | FTP | other *** search
- echo off
-
- rem News Handler
-
- rem UNTESTED !!!
-
- rem Written by Bernie Roehl, May 1990
-
- :outer_loop
- if exist \done_it.dat del \done_it.dat
-
- :loop
- rem Check if user hit a key; if so, exit back to NOS
- checkkey
- if errorlevel 1 goto done
-
- rem Slow done the batch file by waiting here for a minute
- sleep 60
-
- rem Check to see if we're in the expiry 'window'
- inwindow 10:00-11:00
- if not errorlevel 1 goto outer_loop
-
- rem Check to see if we've already done the expiry this time 'round
- if exist \done_it.dat goto loop
-
- rem We're in the window... is it time to do the expire?
- isittime \expire.tim
- if not errorlevel 1 goto loop
-
- rem Expire articles under \spool\mail and its subdirectories, with the
- rem following conditions:
-
- rem Each newsgroup is allowed to have no more than 25 kbytes in it
- rem Each newsgroup is allowed to have no more than 100 articles in it
- rem Articles that arrived more than 5 days ago are to be discarded
-
- expire \spool\mail 25,100,5 \expire.dat
- echo x >\done_it.dat
-
- goto loop
-
- :done
- echo Exiting newsrun.bat ...
-
- rem End of newsrun.bat
-
-